<template>
   <div class="footer">
    <h1>我是Footer</h1>
    <p>Count的值是{{ count }}</p>
  </div>
</template>

<script>
import { mapState, } from 'vuex'

export default {
    name : 'Footer',
    computed : {
        ...mapState({count:'count'})
    }
}
</script>

<style>
.footer {
  margin: 30px;
  background: palevioletred;
}
</style>